package com.xiaoshuidi.cloud.module.report.dal.mapper.datamanage;

import com.xiaoshuidi.cloud.framework.mybatis.core.mapper.BaseMapperX;
import com.xiaoshuidi.cloud.module.report.controller.datamanage.vo.AgeSexDistributionRespVO;
import com.xiaoshuidi.cloud.module.report.controller.datamanage.vo.RentDistributionRespVO;
import com.xiaoshuidi.cloud.module.report.dal.DO.ContractRoomDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserPortraitMapper extends BaseMapperX<ContractRoomDO> {
    // 在租租客租金分布
    RentDistributionRespVO rentDistribution(@Param("apartmentIds") List<Long> apartmentIds, @Param("includCohabitants") Boolean includCohabitants);
    // 在租租客年龄、性别分布
    AgeSexDistributionRespVO ageSexDistribution(@Param("apartmentIds") List<Long> apartmentIds, @Param("includCohabitants") Boolean includCohabitants);
    // 在租租客地域分布
    List<Map<String, Long>> regionDistribution(@Param("apartmentIds") List<Long> apartmentIds, @Param("includCohabitants") Boolean includCohabitants);
    // 在租租客证件类型分布
    List<Map<String, Long>> cardTypeDistribution(@Param("apartmentIds") List<Long> apartmentIds, @Param("includCohabitants") Boolean includCohabitants);
}
